<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://xmlns.jcp.org/jsf/html">
    <h:head>
        <title>Employee Management | Employee Detail</title>
    </h:head>
    <h:body>
        <fieldset>
          <legend>Employee Information: </legend>
            <h:form>
                <table>
                    <tr>
                        <td>Employee ID</td>
                        <td><h:inputText value="#{employeeDetailBean.id}"/></td>
                    </tr>
                    <tr>
                        <td>Name</td>
                        <td><h:inputText value="#{employeeDetailBean.name}"/></td>
                    </tr>
                    <tr>
                        <td>Salary</td>
                        <td><h:inputText value="#{employeeDetailBean.salary}"/></td>
                    </tr>
                    <tr>
                        <td>Address</td>
                        <td><h:inputText value="#{employeeDetailBean.address}"/></td>
                    </tr>
                    <tr>
                        <td>Birthday</td>
                        <td><h:inputText value="#{employeeDetailBean.birthday}"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><h:commandButton value="Update" action="#{employeeDetailBean.update()}"/><h:commandButton value="Delete" action="#{employeeDetailBean.delete()}"/></td>
                    </tr>
                </table>
                <font color="red"><h:outputLabel value="#{employeeDetailBean.error}"/></font>
            </h:form>
        </fieldset>
    </h:body>
</html>

